package org.tis.tools.starter.mybatisplus.querykit.model;

import lombok.Data;

/**
 * description: 查询分页对象
 *
 * @author zhaoch
 * @date 2018/10/9
 **/
@Data
public class QueryPage {

    /**
     * 当前页
     */
    private Integer current = 1;

    /**
     * 每页显示条数
     */
    private Integer size = 10;

    /**
     * 排序字段
     */
    private String orderByField;

    /**
     * 是否升序
     */
    private Boolean asc = true;

    @Override
    public String toString() {
        return "{" +
                "current=" + current +
                ", size=" + size +
                ", orderByField='" + orderByField + '\'' +
                ", asc=" + asc +
                '}';
    }
}
